package com.xuecheng.framework.domain.search;

import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import javax.persistence.Column;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;

@Data
@Document(indexName = "xc_course",type = "_doc")
public class CourseBaseSearch implements Serializable {
    @Id
    private String id;
    @Field(type = FieldType.text, analyzer = "ik_smart_pinyin")
    private String name;
    @Field(type = FieldType.text, analyzer = "ik_smart_pinyin")
    private String description;
    private String pic;
    private Double price;
    private String studymodel;
    private String time;
    private String teachplan;
    private String grade;
    private String teachmode;
    private String users;
    private String mt;
    private String st;
    private Date timestamp;//时间戳
    private String charge;
    private String valid;
    private String qq;
    private Double price_old;
    private String expires;
    @Column(name="pub_time")
    private String pubTime;//课程发布时间
}
